package com.yykj.hospital.client.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yykj.common.util.serializer.LocalDate2LongSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * Created by chendg on 2021/9/9 0009.
 */
@Data
@ApiModel("科室")
public class HospitalDepartmentDTO {

	@ApiModelProperty("科室ID")
	private Integer id;

	@ApiModelProperty("医院ID")
	private Integer hospitalId;

	@ApiModelProperty("医院名称")
	private String name;

	@ApiModelProperty("医院介绍")
	private String info;

	@ApiModelProperty("科室启用状态")
	private Boolean status;

	@ApiModelProperty("科室拼音")
	private String py;

	@ApiModelProperty("科室五笔")
	private String wb;

	@ApiModelProperty("科室编码")
	private String depCode;

	@ApiModelProperty("创建时间")
	@JsonSerialize(using = LocalDate2LongSerializer.class)
	private LocalDateTime addTime;

	@ApiModelProperty("修改时间")
	@JsonSerialize(using = LocalDate2LongSerializer.class)
	private LocalDateTime modifyTime;

	@ApiModelProperty("排序")
	private Integer sorting;

	@ApiModelProperty("科室Ids")
	private List<Integer> depIds;

	private String pic;

	private Integer pid;

}
